var tickerText;
var c = 0;

function resetTicker(originalText) {
	tickerText = originalText;
	c = 0;
	typetext();
	setTimeout(function() { resetTicker(originalText); }, 12000);
}

var isInTag = false;
function typetext() {
	var thisChar = tickerText.substr(c, 1);
	if (thisChar == '<') { isInTag = true; }
	if (thisChar == '>') { isInTag = false; }
	jQuery('.company_name').html(tickerText.substr(0, c++) + '_');
	if (c < tickerText.length + 1)
		if (isInTag) {
		typetext();
	} else {
		setTimeout("typetext()", 250);
	}
}

